package com.ztjy.repository.dao;


import com.ztjy.bean.Warehouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WarehouseDao {
    /**
     * 模糊查询仓库管理
     * @param  warehouse 仓库名字 负责人id 省份 城市(根据登录的用户id来显示仓库管理或者仓库浏览)
     * @return
     */
    public List<Warehouse> findAllRep(Warehouse warehouse);

    /**
     * 通过id查找仓库详情
     * @param rid 仓库id
     * @return
     */
    public Warehouse findRepById(Integer rid);

    /**
     *添加仓库
     * @return 对象
     */
    public Boolean addWare(Warehouse warehouse);

    /**
     * 修改仓库
     * @param warehouse
     * @return
     */
    public Boolean updateWare(Warehouse warehouse);
}